

module.exports = (function(){


  function StringTool () {
    this.name = "StringTool"
    this.version = "0.1"
  }

  StringTool.prototype.jq = function (s, f, l) {
    
    let reg = new RegExp(f+".*?"+l, "g")
    
    return s.match(reg)
  }

  StringTool.prototype.xmlToJson = function (xml) {
    var obj = {}
    let document = Jsoup.parse(xml, "UTF-8")
    print(document)
    
    let fxml = xml.match(/<[A-z].*?>/g),
    lxlm = xml.match(/<*\/[A-z]*?>/g)


    return 1
  }


  return StringTool
})()